<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <ui:composition template="/templates/base.xhtml">

        <ui:define name="body">

            <h:form id="form_jsId">

                <h:dataTable value="#{mainController.userList}" var="user">
                    <h:column>
                        <h:outputText value="#{user.firstName}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{user.lastName}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{user.email}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{user.phone}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{user.username}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{user.password}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{user.enabled}"/>
                    </h:column>
                </h:dataTable>

                <p:commandButton id="doSomethingButton_jsId" value="Do Something" action="#{mainController.doSomething()}"/>
                <p:commandButton id="secondPageButton_jsId" value="Second Page" action="#{mainController.gotoSecondPage}" ajax="false"/>
                
            </h:form>
            
        </ui:define>

    </ui:composition>

</HTML>